package com.littleken.foodieService;

import com.littleken.foodiePojo.bo.SubmitOrderBO;
import com.littleken.foodiePojo.domain.OrderStatusDO;
import com.littleken.foodiePojo.vo.OrderVO;

import java.util.List;

public interface OrderService {

    /**
     * 用于创建订单相关信息
     *
     * @param submitOrderBO
     */
    OrderVO createOrder(SubmitOrderBO submitOrderBO);

    /**
     * 修改订单状态
     *
     * @param orderId
     * @param orderStatus
     */
    String updateOrderStatus(String orderId, Integer orderStatus);

    /**
     * 查询订单状态
     *
     * @param orderId
     * @return
     */
    OrderStatusDO queryOrderStatusInfo(String orderId);

    /**
     * 关闭超时未支付订单
     */
    List<String> closeOrder();
}
